package com.example.he.p0204_myapplication;

import android.app.Application;

/**
 * Created by he on 2022-1-21.
 */

public class MyApplication extends Application {
    private String name;
    @Override
    public void onCreate() {
        super.onCreate();
        setName("张三"); //初始化全局变量
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
